Matthias Clasen [Fri, 21 Aug 2020 23:36:17 +0000 (19:36 -0400)]
build: Start using meson feature options
Use feature options for things that are optional features,
update the docs.
Visible changes here is that the 'print-backends' option
got renamed to 'print' to go better with 'media', and the
'tracker3' option got renamed to 'tracker'.
For options that have been changed into features, the
syntax now is -Dfeature=enabled or -Dfeature=disabled
or -Dfeature=auto.
Matthias Clasen [Sun, 23 Aug 2020 15:59:41 +0000 (11:59 -0400)]
Fix a leak in the font chooser widget
Contrary to what you may expect, pango_attr_font_desc_new()
is not transfer full, it makes a copy of the font description.
Matthias Clasen [Sun, 23 Aug 2020 16:26:35 +0000 (16:26 +0000)]
Merge branch 'fix_widget_factory_ui' into 'master'
fix position of radiobutton1
See merge request GNOME/gtk!2463
Ahmed Eldemery [Sun, 23 Aug 2020 15:39:17 +0000 (17:39 +0200)]
fix position of radiobutton1
Boyuan Yang [Sun, 23 Aug 2020 15:04:45 +0000 (15:04 +0000)]
Update Chinese (China) translation
Goran Vidović [Sun, 23 Aug 2020 11:14:23 +0000 (11:14 +0000)]
Update Croatian translation
Emin Tufan Çetin [Sat, 22 Aug 2020 21:26:01 +0000 (21:26 +0000)]
Update Turkish translation
Boyuan Yang [Sat, 22 Aug 2020 20:18:25 +0000 (20:18 +0000)]
Update Chinese (China) translation
Yuri Chornoivan [Sat, 22 Aug 2020 16:30:41 +0000 (16:30 +0000)]
Update Ukrainian translation
Jakub Steiner [Mon, 17 Aug 2020 08:00:29 +0000 (10:00 +0200)]
Adwaita: error labels insensitive & backdrop states
- address colored labels for the two states
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
Matthias Clasen [Sat, 22 Aug 2020 14:09:35 +0000 (14:09 +0000)]
Merge branch 'remove-unnecessary-frames' into 'master'
Remove unnecessary frames from some widgets
See merge request GNOME/gtk!2462
Andika Triwidada [Sat, 22 Aug 2020 13:19:15 +0000 (13:19 +0000)]
Update Indonesian translation
Piotr Drąg [Sat, 22 Aug 2020 13:17:37 +0000 (15:17 +0200)]
Update Polish translation
Piotr Drąg [Sat, 22 Aug 2020 11:48:19 +0000 (13:48 +0200)]
Update POTFILES.in and POTFILES.skip
nana-4 [Sat, 22 Aug 2020 00:30:28 +0000 (09:30 +0900)]
viewport: Remove unused frame
We've always removed this with Adwaita.
nana-4 [Sat, 22 Aug 2020 00:23:52 +0000 (09:23 +0900)]
placessidebar: Remove unused frame
We've always removed this with Adwaita.
nana-4 [Sat, 22 Aug 2020 00:18:31 +0000 (09:18 +0900)]
entrycompletion: Remove unnecessary frame
The popover already has a border as a frame. Don't create double
borders.
Matthias Clasen [Fri, 21 Aug 2020 23:58:09 +0000 (23:58 +0000)]
Merge branch 'new-sysprof' into 'master'
Port profiling to sysprof-collector api
See merge request GNOME/gtk!2457
Matthias Clasen [Fri, 21 Aug 2020 22:51:48 +0000 (18:51 -0400)]
Rename the profiler option
We don't support any profilers other than sysprof,
so name the option accordingly. While we are at it,
change it to a meson feature option, so
-Dprofiler=true becomes -Dsysprof=enabled
Matthias Clasen [Fri, 21 Aug 2020 22:36:45 +0000 (22:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2461
Matthias Clasen [Fri, 21 Aug 2020 22:28:29 +0000 (18:28 -0400)]
Alterative sysprof build support
Don't link libgtk against libsysprof. We only
need that for the test-performance binary.
Matthias Clasen [Fri, 21 Aug 2020 21:45:00 +0000 (17:45 -0400)]
ci: Use depth=1 for all subprojects
This helps reduce bandwidth requirements for ci.
Matthias Clasen [Fri, 21 Aug 2020 21:40:36 +0000 (17:40 -0400)]
inhibit: Pass valid arguments when Inhibiting
When we pass "" as reason, gnome-session responds
with a "Reason not specified" error. So, send
"Reason not specified" instead. Its true.
Christian Hergert [Fri, 21 Aug 2020 20:49:14 +0000 (13:49 -0700)]
testsuite: use SysprofProfiler for profiling
Instead of using sysprof-cli to profile subprocesses, this uses
libsysprof's SysprofProfiler directly so that we can avoid an indirect
subprocess as well as disabling the polkit nag.
To do this, we have to link against libsysprof instead of
libsysprof-capture. This is limited to the -Dbuild-tests=true and
-Dprofiler=true case.
Matthias Clasen [Fri, 21 Aug 2020 20:45:53 +0000 (20:45 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
layoutmanager: Fix the child-widget property
Closes #3080
See merge request GNOME/gtk!2460
Matthias Clasen [Fri, 21 Aug 2020 20:22:59 +0000 (16:22 -0400)]
Explicitly set grid positions in the ui file
We were outsmarted by a combination of gtk-builder-tool
removing default values and GtkGrid guessing good values
for omitted properties.
Fixes: #3080
Matthias Clasen [Fri, 21 Aug 2020 18:29:14 +0000 (14:29 -0400)]
layoutmanager: Fix the child-widget property
We were setting the child-widget property to the parent.
Oops.
Matthias Clasen [Fri, 21 Aug 2020 17:39:38 +0000 (13:39 -0400)]
fixup a counting error
Remember: 1, 2, 3, _4_, 5...
Matthias Clasen [Fri, 21 Aug 2020 17:32:12 +0000 (17:32 +0000)]
Merge branch 'codespell-changes' into 'master'
*: Fix spelling mistakes found by codespell
See merge request GNOME/gtk!2459
Matthias Clasen [Fri, 21 Aug 2020 17:24:29 +0000 (13:24 -0400)]
wip: Port test-performance to use sysprof-cli
This isn't working for the tests yet, since it
needs a single-application mode that we don't
quite have in sysprof-cli.
Matthias Clasen [Thu, 20 Aug 2020 21:46:53 +0000 (17:46 -0400)]
Update the docs around profiling
Mention sysprof-cli, and stop mentioning GTK_TRACE_FD.
Matthias Clasen [Wed, 19 Aug 2020 22:49:34 +0000 (18:49 -0400)]
Port tracing to the sysprof collector api
Use the new sysprof collector api to do tracing.
Matthias Clasen [Wed, 19 Aug 2020 20:26:51 +0000 (16:26 -0400)]
application: Drop support for profiler activation
Drop support for the org.gnome.Sysprof3.Profiler
D-Bus interface. It is not really used, and if
we don't expose it, we can simplify our profiler
infrastructure.
Matthias Clasen [Fri, 21 Aug 2020 14:49:31 +0000 (14:49 +0000)]
Merge branch 'fontconfig-speedup' into 'master'
Trigger fontconfig initialization early
See merge request GNOME/gtk!2454
Björn Daase [Fri, 21 Aug 2020 13:34:38 +0000 (15:34 +0200)]
docs: Reword GtkTreeView question 28
Björn Daase [Fri, 21 Aug 2020 13:33:12 +0000 (15:33 +0200)]
docs: Reword gtk4-update-icon-cache description
Björn Daase [Fri, 21 Aug 2020 12:41:13 +0000 (14:41 +0200)]
*: Fix spelling mistakes found by codespell
Matthias Clasen [Fri, 21 Aug 2020 13:22:48 +0000 (13:22 +0000)]
Merge branch 'builder-tool-boxes' into 'master'
builder-tool: Rewrite GtkBox
See merge request GNOME/gtk!2447
Jason Francis [Mon, 17 Aug 2020 01:32:21 +0000 (21:32 -0400)]
builder-tool: Rewrite GtkBox
Rewrite expand/fill properties on GtkBox to
hexpand/halign/vexpand/valign on the child widget.
Rewrite GtkVBox and GtkHBox to GtkBox, setting the orientation
property.
Added a test for boxes.
Goran Vidović [Thu, 20 Aug 2020 21:47:34 +0000 (21:47 +0000)]
Update Croatian translation
Jakub Steiner [Thu, 20 Aug 2020 20:58:31 +0000 (20:58 +0000)]
Merge branch 'wip/jimmac/rich-list-styling' into 'master'
Adwaita: rich-list styling
See merge request GNOME/gtk!2456
Jakub Steiner [Mon, 17 Aug 2020 11:18:07 +0000 (13:18 +0200)]
Adwaita: rich-list styling
FIXME: why is the second list in Demo>List Box>Controls taller?
https://gitlab.gnome.org/GNOME/gtk/-/issues/3073
Matej Urbančič [Thu, 20 Aug 2020 16:14:54 +0000 (18:14 +0200)]
Updated Slovenian translation
Matthias Clasen [Thu, 20 Aug 2020 14:03:41 +0000 (14:03 +0000)]
Merge branch 'frame-overflow-hidden' into 'master'
frame: Set GTK_OVERFLOW_HIDDEN
See merge request GNOME/gtk!2455
nana-4 [Thu, 6 Aug 2020 15:54:34 +0000 (00:54 +0900)]
frame: Set GTK_OVERFLOW_HIDDEN
It doesn't really make sense for the frame to allow drawing children
outside of it.
Marek Kasik [Thu, 20 Aug 2020 11:40:04 +0000 (13:40 +0200)]
printing: Use original names for remote CUPS printers
CUPS uses resource paths in the form of "printers/printer_name"
or "classes/class_name" so it is enough to remove the "printers/"
or "classes/" prefix and use the string behind it as a name.
There was recently introduced a wrong check for the prefix.
This commit fixes it in the way it was originally intended.
Matthias Clasen [Wed, 19 Aug 2020 18:20:41 +0000 (14:20 -0400)]
Trigger fontconfig initialization early
Add a pango call to create the fontmap already in gtk_init.
This will let us hide the cost of FcInit() (which on font-heavy
systems can be ~100ms) in a thread, on the pango side.
Matthias Clasen [Thu, 20 Aug 2020 00:30:37 +0000 (00:30 +0000)]
Merge branch 'replace-hardcoded-margins' into 'master'
tooltip & placessidebar: Replace hard-coded margins with theme
See merge request GNOME/gtk!2444
Goran Vidović [Wed, 19 Aug 2020 21:51:29 +0000 (21:51 +0000)]
Update Croatian translation
Matthias Clasen [Wed, 19 Aug 2020 20:46:18 +0000 (20:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2453
Timm Bäder [Sat, 15 Aug 2020 15:03:46 +0000 (17:03 +0200)]
label: Try to avoid a pango_layout_get_extents call
Measuring text is quite expensive, so only do this if really necessary.
Matthias Clasen [Sat, 15 Aug 2020 12:26:28 +0000 (08:26 -0400)]
widget-factory: Improve the error states example
Elaborate the error state handling, and make it show
delayed states in GtkSwitch too.
sicklylife [Tue, 18 Aug 2020 10:03:51 +0000 (10:03 +0000)]
Update Japanese translation
sicklylife [Tue, 18 Aug 2020 09:46:29 +0000 (09:46 +0000)]
Update Japanese translation
Baurzhan Muftakhidinov [Tue, 18 Aug 2020 07:20:38 +0000 (07:20 +0000)]
Update Kazakh translation
Andika Triwidada [Tue, 18 Aug 2020 04:50:25 +0000 (04:50 +0000)]
Update Indonesian translation
Fran Dieguez [Mon, 17 Aug 2020 16:47:55 +0000 (16:47 +0000)]
Update Galician translation
Baurzhan Muftakhidinov [Mon, 17 Aug 2020 10:26:54 +0000 (10:26 +0000)]
Update Kazakh translation
Jakub Steiner [Mon, 17 Aug 2020 08:21:58 +0000 (08:21 +0000)]
Merge branch 'wip/jimmac/error-labels-insensitive' into 'master'
Adwaita: error labels insensitive & backdrop states
See merge request GNOME/gtk!2449
Jakub Steiner [Mon, 17 Aug 2020 08:00:29 +0000 (10:00 +0200)]
Adwaita: error labels insensitive & backdrop states
- address colored labels for the two states
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
Piotr Drąg [Sun, 16 Aug 2020 09:56:23 +0000 (11:56 +0200)]
Update Polish translation
nana-4 [Sat, 15 Aug 2020 13:45:39 +0000 (22:45 +0900)]
placessidebar: Replace hard-coded margins with theme
So we can easily adjust the widget sizing in the theme.
nana-4 [Sat, 15 Aug 2020 13:44:03 +0000 (22:44 +0900)]
tooltip: Replace hard-coded margins with theme
So we can easily adjust the widget sizing in the theme.
Matthias Clasen [Sat, 15 Aug 2020 12:49:29 +0000 (12:49 +0000)]
Merge branch 'gtkassistant_docstring' into 'master'
gtkassistant: Minor docstring wording changes
See merge request GNOME/gtk!2442
Timm Bäder [Sat, 15 Aug 2020 10:49:02 +0000 (10:49 +0000)]
Merge branch 'slider-button-style-class-again' into 'master'
pathbar: Set .slider-button style class to slider buttons again
See merge request GNOME/gtk!2443
nana-4 [Sat, 15 Aug 2020 09:31:32 +0000 (18:31 +0900)]
pathbar: Set .slider-button style class to slider buttons again
This was set in the .ui file that no longer exists, so we need to set it
again here.
Holger Knust [Sat, 15 Aug 2020 09:20:03 +0000 (05:20 -0400)]
gtkassistant: Minor docstring wording changes
Changed the wording to improve the clarity of the documentation. Fixed grammar issue ("spllited")
Matthias Clasen [Fri, 14 Aug 2020 13:00:13 +0000 (13:00 +0000)]
Merge branch 'gdk-internal-cleanup' into 'master'
Gdk internal cleanup
See merge request GNOME/gtk!2438
Matthias Clasen [Fri, 14 Aug 2020 12:47:50 +0000 (12:47 +0000)]
Merge branch 'api-touchups' into 'master'
Api touchups
See merge request GNOME/gtk!2439
Jakub Steiner [Fri, 14 Aug 2020 12:42:56 +0000 (12:42 +0000)]
Merge branch 'wip/jimmac/error-entries-and-labels' into 'master'
Adwaita: error labels and entries
See merge request GNOME/gtk!2440
Florentina Mușat [Fri, 14 Aug 2020 12:16:01 +0000 (12:16 +0000)]
Update Romanian translation
Jakub Steiner [Thu, 13 Aug 2020 08:33:06 +0000 (10:33 +0200)]
Adwaita: error labels and entries
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063
Matthias Clasen [Fri, 14 Aug 2020 01:47:54 +0000 (21:47 -0400)]
gdk: Slim down gdkinternals.h more
Move things to the private headers they belong in.
Matthias Clasen [Fri, 14 Aug 2020 01:38:44 +0000 (21:38 -0400)]
gdk: Move GdkSurfaceTypeHint to its sole user
The x11 backend is the only place where surface
type hints are used in any way. Move the enum
there.
Matthias Clasen [Fri, 14 Aug 2020 01:36:44 +0000 (21:36 -0400)]
win32: Drop vestigial surface type hint field
This wasn't used in any way.
Matthias Clasen [Thu, 13 Aug 2020 23:49:02 +0000 (19:49 -0400)]
Drop style class defines
We document the supported style classes by name,
not by macro name, and these macros don't really
add any value. Drop them for GTK 4.
Matthias Clasen [Thu, 13 Aug 2020 23:21:05 +0000 (19:21 -0400)]
Make GtkNativeInterface private
We are not sure yet if allowing out-of-tree
implementations of GtkNative are a good idea.
Piotr Drąg [Fri, 14 Aug 2020 10:16:51 +0000 (12:16 +0200)]
Update POTFILES.skip
Matthias Clasen [Fri, 14 Aug 2020 01:33:27 +0000 (21:33 -0400)]
wayland: Drop unused surface type hint field
This wasn't used at all.
Matthias Clasen [Fri, 14 Aug 2020 01:20:52 +0000 (21:20 -0400)]
gdk: Slim down gdkinternals.h
Move things to the private headers they belong in.
Matthias Clasen [Fri, 14 Aug 2020 01:03:21 +0000 (21:03 -0400)]
Drop gdk_device_get_position
Convert the last user to _gdk_device_query_state
and drop this unused internal api.
Matthias Clasen [Fri, 14 Aug 2020 01:00:36 +0000 (21:00 -0400)]
gdk: Clean up gdkdevice.h
This header looked just too disorderly.
Same for gdkdevicetool.h.
Matthias Clasen [Fri, 14 Aug 2020 00:59:04 +0000 (20:59 -0400)]
gdk: Documentation touchups
Minor rewordings here and there, strip nonpublic
functions of doc comments, deemphasize logical/physical
devices.
Matthias Clasen [Fri, 14 Aug 2020 00:31:53 +0000 (20:31 -0400)]
docs: Cosmetics
Matthias Clasen [Thu, 13 Aug 2020 23:44:58 +0000 (23:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gtk-demo: Fix the builder demo
See merge request GNOME/gtk!2437
Matthias Clasen [Thu, 13 Aug 2020 23:08:09 +0000 (23:08 +0000)]
Merge branch 'fix_expander_demo' into 'master'
fix resource not found in expander demo
See merge request GNOME/gtk!2436
Matthias Clasen [Thu, 13 Aug 2020 21:45:04 +0000 (17:45 -0400)]
docs: Minor tweaks to the tutorial
Fix a link, and mention meson in a few places.
Matthias Clasen [Thu, 13 Aug 2020 21:30:47 +0000 (17:30 -0400)]
examples: Fix multiple small problems
Add a paragraph about running the example apps
uninstalled in the README, and verify that the
standalone Makefiles actually work. Hint: some
didn't.
Matthias Clasen [Thu, 13 Aug 2020 20:48:35 +0000 (16:48 -0400)]
gtk-demo: Fix the builder demo
The about dialog here wasn't working.
At the same time, make the statusbar
useful for something by showing our
action messages there.
Matthias Clasen [Thu, 13 Aug 2020 21:15:22 +0000 (21:15 +0000)]
Merge branch 'list-styles' into 'master'
Implement and document list styles
See merge request GNOME/gtk!2421
Matthias Clasen [Thu, 13 Aug 2020 21:15:09 +0000 (21:15 +0000)]
Merge branch 'async-highlight' into 'master'
gtk-demo: Async highlight
See merge request GNOME/gtk!2435
Ahmed Eldemery [Thu, 13 Aug 2020 20:46:38 +0000 (22:46 +0200)]
fix resource not found in expander demo
Matthias Clasen [Thu, 13 Aug 2020 18:19:13 +0000 (14:19 -0400)]
gtk-demo: Do markup parsing incrementally too
Pango has a markup parser api, might as well
use it to keep things responsive.
Matthias Clasen [Thu, 13 Aug 2020 19:49:45 +0000 (15:49 -0400)]
gtk-demo: Fix the Windows build
Matthias Clasen [Thu, 13 Aug 2020 17:08:57 +0000 (13:08 -0400)]
gtk-demo: Move the highlighting to a separate file
Move all the logic related to asynchronous highlighting
to fontify.c, to keep main.c from becoming too cluttered.
Jakub Steiner [Thu, 13 Aug 2020 18:11:19 +0000 (20:11 +0200)]
Adwaita: rich-list rows
- add whitespace to match the existing look
Jakub Steiner [Thu, 13 Aug 2020 17:40:00 +0000 (19:40 +0200)]
Adwaita: fix focus for .navigation-sidebar
Jakub Steiner [Mon, 10 Aug 2020 13:10:12 +0000 (15:10 +0200)]
flatpak: builder options
- avoid vulkan from crashing the inspector
Matthias Clasen [Tue, 11 Aug 2020 16:13:29 +0000 (12:13 -0400)]
gtk-demo: take off the makeup
Remove all the hardcoded spacing from the listbox
demo, so the rich-list styling can take effect.
Matthias Clasen [Sun, 9 Aug 2020 14:29:39 +0000 (10:29 -0400)]
Adwaita: Fix hover in navigation sidebars
The placessidebar gets this from somewhere else, but
it wasn't working in the gtk-demo sidebar, so add it
explicitly. placessidebar specific styles should be
dropped from Adwaita as much as possible, but not
doing that here.